<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Blogmer Documentation</title>

<style type='text/css' media='all'>@import url('../css/userguide.css');</style>
<link rel='stylesheet' type='text/css' media='all' href='../css/userguide.css' />

<meta http-equiv='expires' content='-1' />
<meta http-equiv= 'pragma' content='no-cache' />
<meta name='robots' content='all' />
</head>
<body>
<!-- START NAVIGATION -->
<div id="nav"><div id="nav_inner"></div></div>
<div id="nav2"><a name="top">&nbsp;</a></div>
<div id="masthead">
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td><h1>Blogmer beta 2</h1></td>
<td id="breadcrumb_right"><a href="table_of_content.html">Table of contents</a></td>
</tr>
</table>
</div>
<!-- END NAVIGATION -->


<!-- START BREADCRUMB -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%">
<tr>
<td id="breadcrumb">
  <p><a href="http://speedovation.org/" >Speedovation</a> &nbsp;&#8250;&nbsp;
      <a href="../index.html">User Guide Home</a> &nbsp;&#8250;&nbsp;
    Table of contents</p>
  </td>

</tr>
</table>
<!-- END BREADCRUMB -->

<br clear="all" />


<!-- START CONTENT -->
<div id="content">


<h1>Pages_model</h1>

<p>Pages_model is used to create and manage page.</p>

<p class="important"><strong>Beta:</strong>&nbsp; This is an <kbd>Beta</kbd> model. It can be changed anytime.</p>
	
<p>Functions:</p>

<ul>
  <li>create_page</li>
  <li>edit_page($post_id,$page_id)</li>
  <li> delete_page($post_id,$page_id,$page_title)</li>
  <li> list_pages($page_id)</li>
  </ul>

<p>page_id : uses for navigation in pagination</p>
<p>post_id : represents page id</p>
<h2>Pages_model Function Reference</h2>

<h3>$this-&gt;Pages_model-&gt;create_page()</h3>
<p>Capture the posted data  using input class. Store this data into database.No argument.</p>
<h3>$this-&gt;Pages_model-&gt;edit_page($post_id,$page_id)</h3>
<p>Grab the posted data using input class. Updates an already existing data entry of id $post_id .</p>
<p></p>
<h3>$this-&gt;Pages_model-&gt;delete_page($post_id,$page_id)</h3>
<p>Deletes an already existing data entry of id $post_id and redirects it to $page_id </p>
<p></p>
<h3>$this-&gt;Pages_model-&gt;list_pages($pageid)</h3>
<p>Show the all post entries into a tabular form with values </p>
<p>Posted Date | Page Title | Status | View | Edit | Delete </p>
<h2>Final Collection</h2>
<p>
	<code>
    	$this->load->model('Pages_model');<br />
        $this->Pages_model->create_page();<br />
        $this->Pages_model->edit_page($post_id,$page_id);<br />
        $this->Pages_model->delete_page($post_id,$page_id);<br />
        $this->Pages_model->list_pages($pageid);
     </code>
</p>

</div>
<!-- END CONTENT -->


<div id="footer">
<p><a href="#top">Top of Page</a></p>
<p><a href="http://speedovation.com">Speedovation</a> &nbsp;&middot;&nbsp; Copyright &#169; 2007-2008 &nbsp;&middot;&nbsp; <a href="http://speedovation.org/">Blogmer</a></p></div>

</body>
</html>